package cn.kgc.springcloud.controller;

import cn.kgc.springcloud.client.HystrixControllerClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: mosin
 * @version: v1.0  2023/1/6
 */
@RestController
@RequestMapping("ho")
public class HtxOpenfeignController {

    @Autowired(required = false)
    private HystrixControllerClient hystrixControllerClient;

    @RequestMapping("m1")
    public String method1(){
        String s = hystrixControllerClient.method1(10);
        return "HtxOpenfeign service ok :"+s;
    }

}
